package cn.innosmart.aq.view.fragment;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v7.widget.Toolbar;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import cn.innosmart.aq.R;

/**
 * Created by David on 2015/7/16.
 */
public class CountSurePasswordFragment extends Fragment {
    private View view;
    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        view = inflater.inflate(R.layout.fragment_findpassword, container, false);
        setBar();
        return view;
    }

    /**
     * 设置Toolbar
     */
    private Toolbar toolbar;

    private void setBar() {
        toolbar = (Toolbar) getActivity().findViewById(R.id.toolbar);
        toolbar.setNavigationIcon(R.drawable.toolbar_back);
        toolbar.setTitle(getString(R.string.title_findpd));
        toolbar.setNavigationOnClickListener(onNavigationClickListener);
    }


    private View.OnClickListener onNavigationClickListener = new View.OnClickListener() {
        @Override
        public void onClick(View view) {
//            swichCountLoginFragment();
            getActivity().onBackPressed();
        }
    };

}
